package demo2;

/**
 * ClassName Test
 * Description TODO
 * Author Yanyan
 * Date 2025/11/12 21:55
 * Version 1.0
 */
public class Test {

    public static void drawMap(Shape shape) {
        shape.draw();
    }

    public static void main(String[] args) {
        //抽象类不可以实例化对象
        //Shape shape = new Shape();

        drawMap(new Rect());
        drawMap(new Cycle());
    }
}
